import type { App } from 'vue'
import { createI18n } from 'vue-i18n'
import messages from './locale'

const setup = (app: App) => {
  const i18n = createI18n({
    locale: 'zh-CN',
    fallbackLocale: 'en',
    messages,
    legacy: false,
  })
  app.use(i18n)
}

export { setup }
